/*
 *  Copyright (C) 2010:
 *                 Buzzanca Marco <marco.bzn@gmail.com>
 *         Monaco Davide Giuseppe <black.ralkass@gmail.com>
 *              Petralia Veronica <veronicapetralia@gmail.com>
 *
 * This file is part of DS2011BMP
 *
 * DS2011BMP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * DS2011BMP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

/**
 * @file address.cpp
 * @author Veronica Petralia
 *
 * This header file contains Address class implementation.
 */

#include "address.h"


Address::Address(void) { }

Address::Address(boost::uint16_t val)
{
    _port=val;
}

Address::Address(const std::string& ip)
{
    _IP=ip;
}

Address::Address(const std::string& ip,boost::uint16_t p)
{
    _port=p;
    _IP=ip;
}

Address::~Address(void){}


boost::uint16_t Address::getPort(void) const
{
	 return _port;
}

void Address::setPort(boost::uint16_t val)
{
	_port = val;
}


const std::string Address::getIP() const
{
	 return _IP;
}

void Address::setIP(const std::string& val)
{
	_IP = val;
}
